//
//  MyConnection.h
//  小胖兔旅行指南
//
//  Created by dlios on 15/4/13.
//  Copyright (c) 2015年 小胖兔. All rights reserved.
//


#import <Foundation/Foundation.h>
#define Login @"http://appsrv.flyxer.com/api/digest/main"
#define Recomm @"http://appsrv.flyxer.com/api/digest/recomm"
#define collection @"http://appsrv.flyxer.com/api/digest/collection"

@interface MyConnection : NSObject <NSURLConnectionDataDelegate, NSURLConnectionDelegate>

@property (nonatomic, copy) NSString *requestUrl;
@property (nonatomic, retain) NSMutableData *receiveData;
@property (nonatomic, copy) void(^finishBlock)(NSData *data);

+ (void)connectWithUrl:(NSString *)urlStr parmaters:(NSDictionary *)parmaters finishBlock:(void(^)(NSData *data))block;

@end
